<?xml version="1.0" encoding="ISO-8859-1"?> 
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="ISO-8859-1"/>

    <xsl:template match="PLANETES">
        <HTML>
            <HEAD>
                <TITLE>
                    Plantes
                </TITLE>
            </HEAD>
            <BODY>
                <H1>Plantes tries selon leur densit</H1>
                <TABLE>
                    <TR>
                        <TD>Plante</TD>
                        <TD>Masse</TD>
                        <TD>Jour</TD>
                        <TD>Densit</TD>
                    </TR>
                    <xsl:apply-templates>
                        <xsl:sort select="DENSITE"/>
                    </xsl:apply-templates>
                </TABLE>
            </BODY>
        </HTML>
    </xsl:template>
    
    <xsl:template match="PLANETE">
        <TR>
            <TD><xsl:apply-templates select="NOM"/></TD>
            <TD><xsl:apply-templates select="MASSE"/></TD>
            <TD><xsl:apply-templates select="JOUR"/></TD>
            <TD><xsl:apply-templates select="DENSITE"/></TD>
        </TR>
    </xsl:template>
    
</xsl:stylesheet>
